/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database.constants;

import util.common.ConfigFileConstants;

/**
 *
 * @author fillipe
 */
public class DataBaseConstants {
    public static final String DATABASE_FILE_NAME = "database.properties";
    public static final int DATABASE_NUMBER = getIntegerProperty("DATABASE_NUMBER");
    public static final String DATABASE_NAME = getStringProperty("DATABASE_NAME");
    public static final String DATABASE_PATH = getStringProperty("DATABASE_PATH");
    
    public static int getIntegerProperty(String property){
        return Integer.parseInt(ConfigFileConstants.getFileConfig(DATABASE_FILE_NAME, property));
    }
    
    public static String getStringProperty(String property){
        return ConfigFileConstants.getFileConfig(DATABASE_FILE_NAME, property);
    }
}
